﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Entities;
using System.Security.Permissions;
namespace WCF_ListenMusic.Services.Module_Singer.Admin
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IManageSingerService" in both code and config file together.
    [ServiceContract]
    public interface IManageSingerService
    {
        [OperationContract]
        [PrincipalPermission(SecurityAction.Demand, Role = "WCFAdmin")]
        List<CountrySinger> getAllCountrySinger();

        [OperationContract]
        [PrincipalPermission(SecurityAction.Demand, Role = "WCFAdmin")]
        bool deleteSinger_bySingerID(int singerid);

        [OperationContract]
        [PrincipalPermission(SecurityAction.Demand, Role = "WCFAdmin")]
        bool insertnewSinger(Singer singer);

        [OperationContract]
        [PrincipalPermission(SecurityAction.Demand, Role = "WCFAdmin")]
        bool updateSinger(Singer singer);

        [OperationContract]
        [PrincipalPermission(SecurityAction.Demand, Role = "WCFAdmin")]
        bool changeDisplay(int singerid);
    }
}
